package com.entity;

import java.util.Date;

/**
 * @Description: 新闻  // 类说明，在创建类时要填写
 * @ClassName: News    // 类名，会自动填充
 * @Author: weisn          // 创建者
 * @Date: 2020/12/8 9:23   // 时间
 * @Version: 1.0     // 版本
 */
public class News {
    private int id;
    private String cover;
    private String name;
    private String context;
    private Date time;
    private int wy_class;

    public News() {
    }

    public News(int id, String cover, String name, String context, Date time, int wy_class) {
        this.id = id;
        this.cover = cover;
        this.name = name;
        this.context = context;
        this.time = time;
        this.wy_class = wy_class;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getWy_class() {
        return wy_class;
    }

    public void setWy_class(int wy_class) {
        this.wy_class = wy_class;
    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", cover='" + cover + '\'' +
                ", name='" + name + '\'' +
                ", context='" + context + '\'' +
                ", time=" + time +
                ", wy_class=" + wy_class +
                '}';
    }
}
